<?php foreach($list as $v){?>
<a class="info-list" data-url="<?php echo $v['id']?>" onclick="toredirect(this)">
    <span class="one-txt-cut"><i class="iconfont"></i><?php echo $v['message']?></span>
    <span class="info-time"><?php echo $v['add_time']?></span>
    <?php if($v['status']==0){?>
    <em class="news-circle2"></em>
    <?php }?>
</a>
<?php }?>

<script>
    function toredirect(obj) {
        var message_id=$(obj).attr('data-url');
        location.href='/index/user/redirect_url/id/'+message_id;
    }
</script>
